module.exports={
	onload(){
		// console.log("share onload")
		wx.showShareMenu({
			withShareTicket: true,
			menus: ["shareAppMessage", "shareTimeline"],
			success(res) {
				console.log(res)
			},
			fail(err) {
				console.log(err)
			}
		})
	},
	//转发好友
	onShareAppMessage(res){
		// console.log("share 分享")
		return {
			title: "智慧农林",
			path: "/pages/index/index"
		}
	},
	//分享朋友圈
	onShareTimeline(){
		return{
			title: "智慧农林",
			path: "/pages/index/index"
		}
	}
	
}
